'use strict';

const { up } = require("../migrations/20210721065136-init-users");

module.exports = {
  up: async (queryInterface, Sequelize) => {
    const transaction = await queryInterface.sequelize.transaction();
    await queryInterface.changeColumn("Users",'created_at',{
      type:Sequelize.DataTypes.BIGINT(13),
      set:function(val){
        this.setDataValue('create_at',new Date().getTime())
      }
    })
  },

  down: async (queryInterface, Sequelize) => {
   
  }
};
